//
//  YsCloudRealmTool.h
//  YsCloudFileManageSDK
//
//  Created by 宋宏康 on 2020/2/26.
//

#import <Foundation/Foundation.h>
#import "YsCloudFileUploadReamModel.h"
#import "YsCloudFileDownloadRealmModel.h"
#import "YsCloudFileDownloadModel.h"
#import "YsDocUploadModel.h"


NS_ASSUME_NONNULL_BEGIN

@interface YsCloudRealmTool : NSObject

/// 查询上传的数据
/// @param accountCode 用户id
+ (NSArray <YsCloudFileDownloadRealmModel *>*)getUploadTaskWithAccountCode:(NSString *)accountCode;

/// 查询下载的数据
/// @param accountCode 用户id
+ (NSArray <YsCloudFileDownloadRealmModel *>*)getDownloadTaskWithAccountCode:(NSString *)accountCode;

/// 排序下载任务的数据
/// @param downLoadArray 下载的任务
+ (NSArray <NSArray <YsCloudFileDownloadModel *> *>*)getDownloadTaskSortToFinishedWithDownloadArray:(NSArray <YsCloudFileDownloadModel *>*)downLoadArray;

+ (NSArray <NSArray <YsDocUploadModel *> *>*)getUploadTaskSortToFinishedWithDownloadArray:(NSArray <YsDocUploadModel *>*)upLoadArray;

/// 查询下载任务的最小的 任务等待时间
/// @param accountCode 用户id
+ (NSString *)getDownloadTaskWaitTimeWhenTaskBeginWithAccountCode:(NSString *)accountCode;


/// 查询上传任务的最小的 任务等待时间
/// @param accountCode 用户id
+ (NSString *)getUploadTaskWaitTimeWhenTaskBeginWithAccountCode:(NSString *)accountCode;
@end

NS_ASSUME_NONNULL_END
